package HeSuanServer.POJO.R;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @描述:
 * @author: LH
 * @date: 2022/12/6
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    private Integer statusCode;//状态码
    private Object data;//数据
    private String msg;//提示信息
    private static Result result;

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static Result Builder(){
        result=new Result();
        return result;
    }
    public Integer getStatusCode() {
        return statusCode;
    }

    public Result StatusCode(Integer statusCode) {
        result.statusCode = statusCode;
        return result;
    }

    public Object getData() {
        return data;
    }

    public Result Data(Object data) {
        result.data = data;
        return result;
    }

    public String getMsg() {
        return msg;
    }

    public Result Msg(String msg) {
        result.msg = msg;
        return result;
    }
}
